import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/page/Index'
import Customer from '@/page/Customer'
import CustomerTask from '@/page/task/CustomerTask'
import Rule from '@/page/task/Rule'
import WillTask from '@/page/task/WillTask'
import RecycleTask from '@/page/task/RecycleTask'
import Login from '@/page/Login'
import Me from '@/page/Me'

import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)


export default new Router({
  routes: [
    { path: '/', component: Index, meta: { title: "首页", filter: true } },
    { path: '/customer', component: Customer, meta: { title: "客服人员管理", filter: true } },

    { path: '/will/task', component: WillTask, meta: { title: "待分配任务列表", filter: true } },
    { path: '/customer/task', component: CustomerTask, meta: { title: "客服任务列表", filter: true } },
    { path: '/task/rule', component: Rule, meta: { title: "任务分配规则", filter: true } },
    { path: '/recycle/task', component: RecycleTask, meta: { title: "系统自动回收", filter: true } },
    { path:'/helloworld', component: HelloWorld, meta: { title: "helloworld" } },

    { path: '/login', component: Login, meta: { title: "登陆" } },
    { path: '/me', component: Me, meta: { title: "我的主页" } }
  ]
})
